package com.xiaoguang.selecttext

import androidx.annotation.DrawableRes
import java.util.HashMap

/**
 * author : wangbo
 * date   : 2023/11/22
 * desc   :
 */

object EmojiHelper {
    @Volatile
    private var emojiMap: MutableMap<String, Int> = HashMap()

    @Synchronized
    fun putAllEmojiMap(map: Map<String, Int>?) {
        emojiMap.putAll(map!!)
    }

    @Synchronized
    fun putEmojiMap(emojiKey: String, @DrawableRes drawableRes: Int) {
        emojiMap[emojiKey] = drawableRes
    }

    @Synchronized
    fun getEmojiMap():MutableMap<String,Int>{
        return emojiMap
    }
}